package ycl.common.models.req.maps;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 位置
 *
 * @author YCL
 * @date 2021-09-08 22:46:08
 */
@Data
@Accessors(chain = true)
@ApiModel("位置")
public class Location {

	@Schema(description = "纬度")
	private BigDecimal lat;

	@Schema(description = "经度")
	private BigDecimal lng;

	@Schema(description = "距离")
	private BigDecimal distance;

	public Location() {
	}

	public Location(BigDecimal lat, BigDecimal lng) {
		this.lat = lat;
		this.lng = lng;
	}

	public Location(BigDecimal lat, BigDecimal lng, BigDecimal distance) {
		this.lat = lat;
		this.lng = lng;
		this.distance = distance;
	}
}
